<template>
  <van-popup
    v-model="value"
    position="bottom"
    :close-on-click-overlay="false"
    @click-overlay="onClose"
  >
    <div>
      <div class="van-hairline--top-bottom van-actionsheet__header">
        <div>正在拼团</div>
        <van-icon name="close" @click="onClose"/>
      </div>
      <van-cell-group class="list">
        <slot name="item"/>
      </van-cell-group>
    </div>
    <div class="foot-btn-group">
      <van-button size="normal" block round type="default" @click="onClose">关闭</van-button>
    </div>
  </van-popup>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  computed: {},
  methods: {
    onClose() {
      this.$emit("input", false);
    }
  },
  components: {}
};
</script>
<style scoped>
.list {
  max-height: 350px;
  overflow-y: auto;
}
</style>
